import { createApp } from 'vue'

// @ts-ignore
import App from '@/App.vue';

import '@/style/reset.scss'
//引入element-plus插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入全局组件--顶部
// @ts-ignore
import HospitalTop from '@/components/hospital_top/index.vue';
// @ts-ignore
import HospitalBottom from '@/components/hospital_bottom/index.vue';
// @ts-ignore
import Login from '@/components/login/index.vue'
// @ts-ignore
import Visiter from "@/components/visiter/visiter.vue";
//引入vue-router核心插件并安装
import router from "@/router";
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入pinia仓库
import pinia from '@/store'
import '@/permisstion'
const app = createApp(App);
app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)
app.component('Login',Login)
app.component('Visiter',Visiter)
//安装vue-router
app.use(router);
//安装element-plus插件
app.use(ElementPlus,{
    locale: zhCn,
});
//安装pinia仓库
app.use(pinia);
//挂载
app.mount("#app");
// createApp(App).mount('#app')
